package com.lylg.picture_share.dao;

import com.lylg.picture_share.entity.Image;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
public interface ImageMapper {
    void save(Image image);

//    Integer deleteImage(Integer id);

//    Integer updateImage(Image image);
    void passImage(Image image);

   public List<Image> selectAllImages(Image image);

    Image selectImageById(Integer id);

    List<Image> selectAllImagesFront(Image qb);

    void addPlayCount(Integer image_id);

    List<Image> selectImagesByUserId(Integer userId);
    List<Image> selectImagesByUserId2(Integer userId);
    void addGoodCount(Integer image_id);

    List<Image> selectImagesByDesc();
    List<Image> selectImagesByName(Image image);



}
